<?php 
class detailAction extends sfAction{
	public function execute($request){
		$id = $request->getParameter('id', 0);
		$data['product'] = Products::getByIdForDisplay($id);
		$data['cates']	= ProductCates::getDataListFrontEnd();
		$data['product_comments'] = ProductComments::getByProductIdForDisplayDetailProduct($id, array('page' => 1, 'limit' => sfConfig::get('app_product_detail_comment_scroll')));
		$this->setVar('data', $data);
	}
}